package com.hk.admin.module.system.dao;


import com.hk.admin.common.model.system.RoleModel;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * <br>
 * <b>功能：</b>角色<br>
 * <b>作者：</b>Pan.ShiJu<br>
 * <b>日期：</b>2017/6/19 17:10<br>
 */
public interface RoleRepository extends JpaRepository<RoleModel, Long>, JpaSpecificationExecutor<RoleModel> {

    List<RoleModel> findByDeleted(int key);

    List<RoleModel> findByIdIn(List<Long> roleIds);
}
